﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="UcNewUser.ascx.cs" Inherits="TheHeGeo.UserControl.UcNewUser" %>
<%@ Register assembly="DevExpress.Web.v14.2, Version=14.2.3.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" namespace="DevExpress.Web" tagprefix="dx" %>

<style type="text/css">
    .auto-style1 {
        width: 724px;
    }
    .auto-style2 {
        width: 135px;
    }
    .auto-style5 {
    }
    </style>
<div style="width: 98%">
    
    <table style="width: 100%;">
        <tr>
            <td class="auto-style2">
                <dx:ASPxLabel ID="ASPxLabel1" runat="server" Text="Tên đăng nhập (*)">
                </dx:ASPxLabel>
            </td>
            <td class="auto-style1">
                <dx:ASPxTextBox ID="txtUserName" runat="server" Width="100%">
                    <ValidationSettings CausesValidation="True" Display="Dynamic" SetFocusOnError="True" ValidationGroup="user">
                        <RequiredField ErrorText="Yêu cầu nhập" IsRequired="True" />
                    </ValidationSettings>
                </dx:ASPxTextBox>
            </td>
            <td>&nbsp;</td>
        </tr>
        <tr>
            <td class="auto-style2">
                <dx:ASPxLabel ID="ASPxLabel2" runat="server" Text="Mật khẩu (*)">
                </dx:ASPxLabel>
            </td>
            <td class="auto-style1">
                <dx:ASPxTextBox ID="txtPwd" runat="server" Password="True" Width="100%">
                    <ValidationSettings CausesValidation="True" Display="Dynamic" SetFocusOnError="True" ValidationGroup="user">
                        <RequiredField ErrorText="Yêu cầu nhập" IsRequired="True" />
                    </ValidationSettings>
                </dx:ASPxTextBox>
            </td>
            <td>&nbsp;</td>
        </tr>
        <tr>
            <td class="auto-style2">
                <dx:ASPxLabel ID="ASPxLabel3" runat="server" Text="Nhập lại mật khẩu(*)">
                </dx:ASPxLabel>
            </td>
            <td class="auto-style1">
                <dx:ASPxTextBox ID="txtRePwd" runat="server" Password="True" Width="100%">
                    <ValidationSettings CausesValidation="True" Display="Dynamic" SetFocusOnError="True" ValidationGroup="user">
                        <RequiredField ErrorText="Yêu cầu nhập" IsRequired="True" />
                    </ValidationSettings>
                </dx:ASPxTextBox>
            </td>
            <td>&nbsp;</td>
        </tr>
        <tr>
            <td class="auto-style2">
                <dx:ASPxLabel ID="ASPxLabel4" runat="server" Text="Email (*)">
                </dx:ASPxLabel>
            </td>
            <td class="auto-style1">
                <dx:ASPxTextBox ID="txtEmail" runat="server" Width="100%">
                    <ValidationSettings CausesValidation="True" Display="Dynamic" SetFocusOnError="True" ValidationGroup="user">
                        <RegularExpression ErrorText="Email không đúng định dạng" ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*" />
                        <RequiredField ErrorText="Yêu cầu nhập" IsRequired="True" />
                    </ValidationSettings>
                </dx:ASPxTextBox>
            </td>
            <td>&nbsp;</td>
        </tr>
        <tr>
            <td class="auto-style2">
                <dx:ASPxLabel ID="ASPxLabel8" runat="server" Text="Họ và tên">
                </dx:ASPxLabel>
            </td>
            <td class="auto-style1">
                <dx:ASPxTextBox ID="txtHoVaTen" runat="server" Width="100%">
                    <ValidationSettings CausesValidation="True" Display="Dynamic" SetFocusOnError="True" ValidationGroup="user">
                        <RegularExpression ErrorText="" />
                        <RequiredField ErrorText="Yêu cầu nhập" />
                    </ValidationSettings>
                </dx:ASPxTextBox>
            </td>
            <td>&nbsp;</td>
        </tr>
        <tr>
            <td class="auto-style2">
                <dx:ASPxLabel ID="ASPxLabel10" runat="server" Text="Địa chỉ nhà riêng">
                </dx:ASPxLabel>
            </td>
            <td class="auto-style1">
                <dx:ASPxTextBox ID="txtDcNhaRieng" runat="server" Width="100%">
                    <ValidationSettings CausesValidation="True" Display="Dynamic" SetFocusOnError="True" ValidationGroup="user">
                        <RegularExpression ErrorText="" />
                        <RequiredField ErrorText="Yêu cầu nhập" />
                    </ValidationSettings>
                </dx:ASPxTextBox>
            </td>
            <td>&nbsp;</td>
        </tr>
        <tr>
            <td class="auto-style2">
                <dx:ASPxLabel ID="ASPxLabel5" runat="server" Text="Số điện thoại">
                </dx:ASPxLabel>
            </td>
            <td class="auto-style1">
                <dx:ASPxTextBox ID="txtPhone" runat="server" Width="100%">
                </dx:ASPxTextBox>
            </td>
            <td>&nbsp;</td>
        </tr>
        <tr>
            <td class="auto-style2">
                <dx:ASPxLabel ID="ASPxLabel9" runat="server" Text="Tên công ty">
                </dx:ASPxLabel>
            </td>
            <td class="auto-style1">
                <dx:ASPxTextBox ID="txtTenCty" runat="server" Width="100%">
                    <ValidationSettings CausesValidation="True" Display="Dynamic" SetFocusOnError="True" ValidationGroup="user">
                        <RegularExpression ErrorText="" />
                        <RequiredField ErrorText="Yêu cầu nhập" />
                    </ValidationSettings>
                </dx:ASPxTextBox>
            </td>
            <td>&nbsp;</td>
        </tr>
        <tr>
            <td class="auto-style2">
                <dx:ASPxLabel ID="ASPxLabel11" runat="server" Text="Địa chỉ công ty">
                </dx:ASPxLabel>
            </td>
            <td class="auto-style1">
                <dx:ASPxTextBox ID="txtDcCty" runat="server" Width="100%">
                    <ValidationSettings CausesValidation="True" Display="Dynamic" SetFocusOnError="True" ValidationGroup="user">
                        <RegularExpression ErrorText="" />
                        <RequiredField ErrorText="Yêu cầu nhập" />
                    </ValidationSettings>
                </dx:ASPxTextBox>
            </td>
            <td>&nbsp;</td>
        </tr>
        <tr>
            <td class="auto-style2">
                <dx:ASPxLabel ID="ASPxLabel12" runat="server" Text="Chức vụ">
                </dx:ASPxLabel>
            </td>
            <td class="auto-style1">
                <dx:ASPxTextBox ID="txtChucVu" runat="server" Width="100%">
                    <ValidationSettings CausesValidation="True" Display="Dynamic" SetFocusOnError="True" ValidationGroup="user">
                        <RegularExpression ErrorText="" />
                        <RequiredField ErrorText="Yêu cầu nhập" />
                    </ValidationSettings>
                </dx:ASPxTextBox>
            </td>
            <td>&nbsp;</td>
        </tr>
        <tr>
            <td class="auto-style2">&nbsp;</td>
            <td class="auto-style1">
                <dx:ASPxCaptcha ID="ASPxCaptcha1" runat="server" Width="100%">
                    <ValidationSettings Display="Dynamic" ErrorText="Sai mã captcha" SetFocusOnError="True" ValidationGroup="user">
                        <RequiredField ErrorText="yêu cầu nhập" />
                    </ValidationSettings>
                    <RefreshButton Text="Lấy mã mới">
                    </RefreshButton>
                    <TextBox LabelText="Điền mã trong ảnh" Position="Left" />
                    <ChallengeImage ForegroundColor="#000000"></ChallengeImage>
                </dx:ASPxCaptcha>
            </td>
            <td>&nbsp;</td>
        </tr>
        <tr>
            <td class="auto-style2">&nbsp;</td>
            <td class="auto-style1">
                <dx:ASPxLabel ID="lblError" runat="server" Text="Tên đăng nhập đã tồn tại, vui lòng thử lại với tên đăng nhập khác" ForeColor="Red" Visible="False">
                </dx:ASPxLabel>
            </td>
            <td>&nbsp;</td>
        </tr>
        <tr>
            <td class="auto-style2">&nbsp;</td>
            <td class="auto-style1">
                <asp:Button ID="btOk" runat="server" Text="Đăng ký" Width="95px" OnClientClick="return ASPxClientEdit.ValidateGroup('user');" OnClick="btOk_Click"  />
            </td>
            <td>&nbsp;</td>
        </tr>
    </table>
    
</div>

<dx:ASPxPopupControl ID="ASPxPopupControl1" runat="server" CloseAction="None" HeaderText="Tạo tài khoản thành công" Height="227px" PopupHorizontalAlign="WindowCenter" PopupVerticalAlign="WindowCenter" ShowCloseButton="False" Width="597px">
    <ContentCollection>
<dx:PopupControlContentControl runat="server" SupportsDisabledAttribute="True">
    <table style="width: 100%;">
        <tr>
            <td colspan="4">
                <dx:ASPxLabel ID="ASPxLabel7" runat="server" Text="Vui lòng kiểm tra email, lấy mã số cá nhân và điền vào ô bên dưới">
                </dx:ASPxLabel>
            </td>
        </tr>
        <tr>
            <td>Mã số cá nhân:</td>
            <td colspan="3">
                <dx:ASPxTextBox ID="txtUserId" runat="server" Width="470px">
                </dx:ASPxTextBox>
            </td>
        </tr>
        <tr>
            <td class="auto-style5" colspan="4">
                <dx:ASPxLabel ID="lblPErr" runat="server" ForeColor="Red" Text="Mã số cá nhân không chính xác,vui lòng kiểm tra lại" Visible="False">
                </dx:ASPxLabel>
            </td>
        </tr>
        <tr>
            <td>&nbsp;</td>
            <td>&nbsp;</td>
            <td colspan="2">&nbsp;</td>
        </tr>
        <tr>
            <td>&nbsp;</td>
            <td>
                <asp:Button ID="btFn" runat="server" OnClick="btFn_Click" Text="Chấp nhận" Width="105px" />
            </td>
            <td>
                <asp:Button ID="btReEmail" runat="server" Text="Gửi lại email" Width="105px" />
            </td>
            <td>
                <asp:Button ID="btCancel" runat="server" Text="Hủy đăng ký" Width="105px" />
            </td>
        </tr>
    </table>
        </dx:PopupControlContentControl>
</ContentCollection>
</dx:ASPxPopupControl>


